package com.jdzy.model.student.pojos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdzy.model.common.pojos.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

@Data
@ApiModel(description = "竞赛表")
@TableName("competition")
public class Competition extends BaseEntity {

    @ApiModelProperty(value = "学号stuId")
    @TableField(value = "stu_id")
    private String stuId;

    @ApiModelProperty(value = "竞赛名称")
    @TableField(value = "competition_name")
    private String competitionName;

    @ApiModelProperty(value = "竞赛时间")
    @TableField(value = "competition_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    private LocalDate competitionTime;

    @ApiModelProperty(value = "奖项级别")
    @TableField(value = "award_level")
    private Byte awardLevel;


    @ApiModelProperty(value = "竞赛类型")
    @TableField(value = "competition_type")
    private Byte competitionType;

}
